﻿<%@ Page Language="C#" AutoEventWireup="True" CodeBehind="RevisionManagement.aspx.cs"
    Inherits="Medianamik.UI.ContentManagement.RevisionManagement" MasterPageFile="../MasterPages/MedianamikModule.Master" %>

<asp:Content ID="HeaderContentHolder" runat="server" ContentPlaceHolderID="HeaderContentHolder">
</asp:Content>
<asp:Content ID="ContextMenuContent" ContentPlaceHolderID="ContextMenu" runat="server">
    <asp:UpdatePanel ID="ButtonPanel" runat="server" UpdateMode="Always">
        <ContentTemplate>
            <asp:HyperLink ID="saveButton" runat="server" CssClass="Action BtRevision-Inactif"
                Text="<%$ Resources: Medianamik_ContentManagement, GoToSelectedRevision %>" />
        </ContentTemplate>
    </asp:UpdatePanel>
    <a href="<%= ReturnURL %>" class="Action BtAnnuler unlock"><asp:Literal runat="server" Text="<%$ Resources: Medianamik_Global, Cancel %>" /></a>
</asp:Content>
<asp:Content ID="CenterContent" ContentPlaceHolderID="CenterContent" runat="server">
    <med:BreadcrumbTrail ID="BreadCrumbs" ItemCssClass="unlock" runat="server" CssClass="FilAriane" Url="/medianamik/ContentManagement/NodeList.aspx" ParamName="parent" />
    <lock:LockActivator ID="RevisionLockActivator" runat="server" />
    <asp:UpdatePanel ID="RevisionPanel" runat="server" UpdateMode="Conditional" ChildrenAsTriggers="true">
        <ContentTemplate>
            <lock:LockInfoTooltip runat="server" ID="LockInfoTooltip" />
            <telerik:RadGrid runat="server" ID="RevisionGrid" EnableEmbeddedSkins="false" Skin="Medianamik"
                AutoGenerateColumns="false" OnNeedDataSource="LoadRevisions" OnItemDataBound="RevisionDataBound" Width="100%" >
                <MasterTableView DataKeyNames="StartDate">
                    <NoRecordsTemplate>
                        <asp:Literal ID="NoRecords" runat="server" Text="<%$ Resources: Medianamik_ContentManagement, NoRecordsToDisplay %>" />
                    </NoRecordsTemplate>
                    <Columns>
                        <telerik:GridTemplateColumn UniqueName="Revision" HeaderText="<%$ Resources: Medianamik_ContentManagement, RevisionColumnName %>">
                            <ItemTemplate>
                                <asp:RadioButton ID="RevisionRadioButton" runat="server" OnCheckedChanged="SelectedRevisionChanged" AutoPostBack="true" />
                            </ItemTemplate>
                        </telerik:GridTemplateColumn>
                        <telerik:GridBoundColumn DataField="CreatedBy" HeaderText="<%$ Resources: Medianamik_ContentManagement, CreatedByColumnName %>" />
                    </Columns>
                </MasterTableView>
            </telerik:RadGrid>
            <asp:Literal ID="RevisionDetail" runat="server" />
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
